<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2017-07-10 22:32:23, compiled from E:\WYT\sz-xlh/app/template/kabasi/home/pro_cat.html */ ?>
<div class="mod_block mb_cEHFQbiR_block">
<h3 class="blk_t">产品分类</h3>
<div class="list_main category">
	<div class="prod_type">
	<div id="pro_type">
		<ul>
		<?php foreach ($pro_cat as $k=>$v) { ?>
			<li>
	        		<a href="/<?php echo $v['url'];?>/"><?php echo $v['title'];?></a>
	        		<?php if ($v['products']) { ?>
				<ul>
				<?php foreach ($v[products] as $k2=>$v2) { ?>
		        	<li><a href="/<?php echo $v2['url'];?>/"><?php echo $v2['title'];?></a></li>
		        <?php } ?>
			    </ul>
			    <?php } ?>
		    </li>
		<?php } ?>
    	<div class="blankbar1"></div>
		</ul>		
	</div>
	</div>
	<div class="list_bot"></div>
</div>
<div class="blankbar"></div>

<script type="text/javascript" language="javascript">
/**
 * for menu-drop type
 */
var type = "";
if (type == 'click') {
	$(function(){
		$('#pro_type li:has(ul)').click(function(event){
	    	if (this == event.target) {
	        	if ($(this).children().is(':hidden')) {
	                $(this).css({background:'url(/static/images/minus.gif) no-repeat left 13px','text-indent':'16px','padding-top':'3px'})
	                .children().show();
	                
	              	$(this).siblings().each(function (){
	              		$(this).find("ul").hide();
	              		if ($(this).children().is("ul")){
	              			$(this).css({background:'url(/static/images/plus.gif) no-repeat left 13px','text-indent':'16px','padding-top':'3px'});
	              	    }
	              	});
	            } else {
	                $(this).css({background:'url(/static/images/plus.gif) no-repeat left 13px','text-indent':'16px','padding-top':'3px'})
	                .find("ul").hide();
	            }  
	        }
		}).css('cursor','pointer');
	          
	    $('#pro_type li:has(ul)').css({background:'url(/static/images/plus.gif) no-repeat left 13px','text-indent':'16px','padding-top':'3px'});
	        	
	    $('#pro_type li:not(:has(ul))').css({cursor: 'pointer','list-style-image':'none'});
	});
} else {
 	$("#pro_type > ul").droppy();
	$("#pro_type ul ul li:last-child").css("border","0px");
}
</script>


</div>